Fix issues #224 and #225: Parallel Documentation and add Unit Tests#283
Fix issues #224 and #225: Parallel Documentation and add Unit Tests#283ndem0 merged 1 commit intomathLab:masterfrom
Conversation
062173f to
31ebcdc
Compare
|
Can you please use the same tests for the parallel and serial versions? The |
ac8b964 to
218b5b1
Compare
|
Dear @kshitij-maths, I think no one of the tests for the I also tried locally, and none of the tests in that folder are actually running. |
5b403f7 to
40f8507
Compare
Dear @ndem0 please check if everything is okay now. |
|
Yes, great! Btw, the tests are not running on macOs, so please add an issue for the future. The PR is fine, I would merge but "This branch cannot be rebased due to conflicts". |
40f8507 to
cd4efaf
Compare
|
@ndem0 Done! |
Description
This PR resolves the issues found in the Parallel Reduced Order Model (ROM) module. It modernizes the
ezyrb.parallelimplementation to align with the current EZyRB (v1.3.3) API and introduces a dedicated unit test suite.Fixes and Improvements
1. API Synchronization (#224)
.parametersand.snapshotscalls withparameters_matrixandsnapshots_matrixto match the coreDatabasestructure.fit()andpredict()methods. This ensures that data is passed to the POD and RBF engines in the correctscaler_red,database) from internal method calls that were causingTypeErrorduring parallel task distribution.2. Documentation & Quality (#225)
predict()methodDelaunayimports fromscipy.spatial.qhulltoscipy.spatialto maintain compatibility with SciPy 2.0.tests/test_parallel.pywhich covers:test_initialization: Verifies proper object construction and attribute mapping.test_fit: Confirms the parallel training workflow and generation of reduction modes.test_predict_scalar: Tests the "Transpose Sandwich" logic for a single parametric input.test_predict_db: Mathematically verifies accuracy by predicting a full database and comparing against original snapshots.test_wrong_dimensions: Ensures the model correctly raises exceptions for mismatched input data.Verification Results
pytest -v tests/test_parallel.pyRelated Issues
This PR resolves issues #224 and #225